/**
 * Coryright 2015-2020 www.eyaomall.cn
 * All rights reserved.
 * @author tumingjun
 * @date 2016年9月1日
 *
 */

package com.eyaomall.wxmall.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eyaomall.wxmall.dao.ShopExtDao;
import com.eyaomall.wxmall.model.po.ShopExt;
import com.eyaomall.wxmall.model.vo.ShopExtVO;
import com.eyaomall.wxmall.service.ShopExtService;

/**
 * @author tumingjun
 *
 */
@Service
public class ShopExtServiceImpl implements ShopExtService{
	
	@Autowired
	private ShopExtDao shopExtDao;

	/**
	 * 父商家是否开启推广
	 */
	public ShopExtVO getParent(Integer shopId) {
		
		ShopExt shopExt = new ShopExt();
		shopExt.setShopId(shopId);
		return shopExtDao.getParent(shopExt);
	}

}
